package com.tsll.service;

import com.tsll.entity.PurchaseBookInfo;
import com.tsll.vo.PurchaseBooksInfoVo;
import com.tsll.vo.Result;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PurchaseBookInfoService {

    /**
     * 批量添加申请采购图书信息
     *
     * @param bookList
     * @param purchaseInfoId
     * @return
     */
    int addBatch(List<PurchaseBooksInfoVo> bookList, Integer purchaseInfoId);



    /**
     * 根据采购申请编号查询采购详情
     * @param purchaseinfoId
     * @return
     */
    List<PurchaseBookInfo> selectByPurchaseinfoId(Integer purchaseinfoId);


    /**
     * 根据采购申请编号删除采购详情
     * @param purchaseinfoId
     * @return
     */
    int deleteByPurchaseinfoId(Integer purchaseinfoId);


    /**
     * 根据id删除申请采购的图书
     * @param id
     * @return
     */
    int deleteById(Integer id);


    /**
     * 根据id修改图书信息
     * @param purchaseBookInfo
     * @return
     */
    int updateById(PurchaseBookInfo purchaseBookInfo);


    /**
     * 添加图书信息
     * @param purchaseBookInfo
     * @return
     */
    int insetBookInfo(PurchaseBookInfo purchaseBookInfo);


   Result check(Integer current, Integer pageSize, PurchaseBooksInfoVo purchaseBooksInfoVo);

    List<PurchaseBookInfo> Ware(PurchaseBooksInfoVo purchaseBooksInfoVo);
    Result updatestatus(List<PurchaseBooksInfoVo> bookList);
}
